package com.base.test.mysql2es.config;

import com.base.test.mysql2es.model.Config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DataInit {

    @Bean(initMethod = "check")
    @ConfigurationProperties(prefix = "db2es.config")
    public Config config() {
        return new Config();
    }
}
